Inject defaultCatalog property to chaise-config and remove catalog alias creation step #2497
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
A while ago, I modified the catalog creation step of our test framework to add aliases to the created catalog. This allowed us to test the
defaultCatalog
property since we could hardcode the alias inside thechaise-config.js
files.This worked properly while I was testing it on my own. However, since then, we have found that the alias creation has limitations when multiple users use the same alias or if multiple users want to run test cases simultaneously.
So this PR will remove the alias creation step and instead will inject a line into the
chaise-config.js
like the following:Since we don't need this for all the test cases, I added a new
addDefaultCatalogToChaiseConfig
to our test options.Details
The following are the issues that we found with the alias method:
my-alias
to a catalog. At the same time, user2 runs the test case and assignsmy-alias
to their own newly created catalog. In this case, using themy-alias
will refer to one of these catalogs, so one of the users is using the wrong catalog.owner
property while creating the alias, whoever creates it first will be its sole owner. So, if someone else attempts to use the same alias for a different catalog, they will get an error. To solve this, we would have to provide theisrd-testers
as theowner
of the alias. But that means that we have to hardcode this as part of chaise.